<template>
  <div class="feature-section">
    <div class="container">
      <div class="card">
        <div class="card-content">
          <h3 class="card-title">模式创新</h3>
          <div class="card-image">
            <svg viewBox="0 0 100 100" fill="#3498db">
              <path d="M50 10 L90 30 L90 70 L50 90 L10 70 L10 30 Z M50 20 L80 35 L80 65 L50 80 L20 65 L20 35 Z M50 30 L70 40 L70 60 L50 70 L30 60 L30 40 Z" />
            </svg>
          </div>
          <button class="card-button">立即查看</button>
        </div>
      </div>
      <div class="card">
        <div class="card-content">
          <h3 class="card-title">资产数字化</h3>
          <div class="card-image">
            <svg viewBox="0 0 100 100" fill="#e67e22">
              <path d="M50 10 L90 30 L90 70 L50 90 L10 70 L10 30 Z M50 25 L80 40 L80 60 L50 75 L20 60 L20 40 Z M50 35 L70 45 L70 55 L50 65 L30 55 L30 45 Z" />
            </svg>
          </div>
          <button class="card-button">立即查看</button>
        </div>
      </div>
      <div class="card">
        <div class="card-content">
          <h3 class="card-title">供需高效管理</h3>
          <div class="card-image">
            <svg viewBox="0 0 100 100" fill="#27ae60">
              <path d="M50 10 L90 30 L90 70 L50 90 L10 70 L10 30 Z M50 20 L80 35 L80 65 L50 80 L20 65 L20 35 Z M50 30 L70 40 L70 60 L50 70 L30 60 L30 40 Z" />
            </svg>
          </div>
          <button class="card-button">立即查看</button>
        </div>
      </div>
      <div class="card">
        <div class="card-content">
          <h3 class="card-title">智慧调度</h3>
          <div class="card-image">
            <svg viewBox="0 0 100 100" fill="#8e44ad">
              <path d="M50 10 L90 30 L90 70 L50 90 L10 70 L10 30 Z M50 25 L80 40 L80 60 L50 75 L20 60 L20 40 Z M50 35 L70 45 L70 55 L50 65 L30 55 L30 45 Z" />
            </svg>
          </div>
          <button class="card-button">立即查看</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'FeatureSection'
}
</script>

<style scoped>
.feature-section {
  background-color: #f0f8ff; /* 浅蓝色背景 */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background-color: #fff; /* 白色卡片背景 */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: calc(25% - 20px); /* 四个卡片平分宽度 */
  box-sizing: border-box;
  text-align: center;

}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  color: #333; /* 深灰色标题 */
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 10px;
}

.card-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image svg {
  width: 100%;
  height: 100%;
}

.card-button {
  background-color: #3498db; /* 蓝色按钮背景 */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #2980b9;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .card {
    width: calc(50% - 20px); /* 两个卡片一行 */
  }
}

@media (max-width: 800px) {
  .card {
    width: 100%; /* 一个卡片一行 */
  }
}
</style>